package com.pinla.util.IPparse;

public class TestIP {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		//指定纯真数据库的文件名，所在文件夹  
	      IPSeeker ip=new IPSeeker("QQWry.Dat","D:/Program Files/cz88.net/ip");  
	     
		  //测试IP 58.20.43.13   
	     String testIp="58.20.43.13";
		System.out.println(ip.getIPLocation(testIp).getCountry()+":"+ip.getIPLocation(testIp).getArea());
		
		System.out.println(Thread.currentThread().getContextClassLoader().getResource(""));
		 System.out.println(TestIP.class.getClassLoader().getResource(""));
		System.out.println(ClassLoader.getSystemResource(""));
		System.out.println(TestIP.class.getResource("")); 

		System.out.println(TestIP.class.getResource("/")); 


	}

}
